from bs4 import  BeautifulSoup
class HtmlUtil:
    @classmethod
    def html_parser(cls,resp):
        html_content =resp.json().get("description").get("form")
        bs = BeautifulSoup(html_content,"html.parser")
        url = bs.form.get("action")
        parmas = {}
        input_list=bs.find_all("input")
        for input in input_list:
            parmas[input.get("name")]=input.get("value")
        return url,parmas

